package com.bobi.ecofavor.service;

import com.bobi.ecofavor.common.utils.JsonResponse;
import com.bobi.ecofavor.model.domain.Coupon;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bobi.ecofavor.model.dto.CouponDto;

import java.util.List;

/**
 * <p>
 * 优惠券 服务类
 * </p>
 *
 * @author wenyuan
 * @since 2023-10-21
 */
public interface CouponService extends IService<Coupon> {

    List<CouponDto> getUnsedCoupons(Integer userId);

    JsonResponse getPastCoupons(Integer userId);

    JsonResponse getAllUnacceptedCoupons(Integer userId);

    JsonResponse acceptCoupon(Integer id, Integer categoryId);
}
